//const state = {
//  	user: {
//  		username: "huhx",
//  		password: "",
//  		email: ""
//	},
//};
//
//const mutations = {
//  updateUser(state, user) {
//    state.user = user;
//  },
//  updateUsername(state, username) {
//    state.user.username = username;
//  },
//  updatePassowrd(state, password) {
//	  state.password = password;
//  },
//  updateEmail(state, email) {
//	  state.user.email = email;
//  }
//}
//
//const actions = {
//	updateUser: ({ commit }) => commit('updateUser'),
//	updateUsername: ({ commit }) => commit('updateUsername'),
//	updatePassowrd: ({ commit }) => commit('updatePassowrd'),
//	updateEmail: ({ commit }) => commit('updateEmail')
//}

//const getters = {
//  user: state => state.user
//}

//var test = {email: state => state.email};= 
//var mapStatus = Vuex.mapState({email: state => state.email});
//var mapActions = new Vuex.mapActions(actions);

//var mapState = Vuex.mapState;

// 子模块里面是store.getters.usertype，调用state，则用store.state.login.usertype
var store = new Vuex.Store({
//  state,
//  getters,
//  mutations,
//  actions,
  modules: {
    login: loginModule
  }
});